package lesfiersarepasser.assoc.Junit;

import junit.framework.TestCase;
import lesfiersarepasser.assoc.bdd.DerbyConnection;

import org.junit.Test;

public class TestConnection extends TestCase{

	
	@Test
	public void AssertUserOk(){
		assertEquals("The login should be the same",DerbyConnection.connectUser("maxD", "pass") == "maxD");
	}
	
	@Test
	public void AssertUserFaux(){
		assertEquals("The login should be not the same",DerbyConnection.connectUser("bzbzbzbz", "bzbzzbzb") == null);
	}
	
}
